import plugin from '../../lib/plugins/plugin.js'
import cfg from '../../lib/config/config.js'
/*
戳一戳会发送文字同时也会发送对应的语音！
但是发送语音需要ffmpeg
如果你不会装ffmpeg
Linux系统可以用脚本解决
bash <(curl -sL https://gitee.com/haanxuan/yzai-pd/raw/master/Xf.sh)
Windows系统可以看教程
https://hanxuan.cc/blogs/ffmpeg.html
*/
const _path = process.cwd();
/*
首发群453694434
本插件免费公开外传！
禁止任何交易行为
如果你是交易获得
请及时退款并举报发布者！
*/

export class example extends plugin {
  constructor () {
    super({
      /** 功能名称 */
      name: '语音戳一戳',
      /** 功能描述 */
      dsc: '简单开发示例',
      /** https://oicqjs.github.io/oicq/#events */
      event: 'notice.group.poke',
      /** 优先级，数字越小等级越高 */
      priority: -114514,
      rule: [
        {
          /** 命令正则匹配 */
          reg: '.*',
          /** 执行方法 */
          fnc: 'chuochuo'
        }
      ]
    })
  }
 
  

  async chuochuo (e) {
    

    if(e.target_id == cfg.qq){
      
    /*这个是一个随机数*/
    let num = Math.ceil(Math.random() * 43);
    /*
    前面的数字就是对应的触发数字，随机到什么数字就触发对应的发送内容
    音频怎么获取可以看B站教程
    【超简单之一键下载原神角色语音,你还在录屏提取音频吗?】 https://www.bilibili.com/video/BV1a34y1f7f8/?share_source=copy_web&vd_source=637815ec2b4a6ad7b556be6113eea381
    如果被删除了就自己找找吧，挺简单的
    复制粘贴就可以自己写想要的角色戳一戳了
    */
 if(num == 1){
  e.reply(`	
  我名申鹤，命格孤煞，易伤身边人，仙人叮嘱要以此红绳锁魂，控制杀心。若你不畏惧与我同行…很好，就请伸出手来吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/b2/3d4fhyppxc49nztnowjmtjubvs58amm.mp3")
  e.reply(msg)
}
if(num == 2){
  e.reply(`	
  人间的归宿是一种奢望，我早已习惯跟山川与鸟兽作伴了。`);
  let msg = await segment.record(" https://patchwiki.biligame.com/images/ys/8/8a/0uijj87ah3tg2nyqci3pgdbbihsah7b.mp3  ")
  e.reply(msg)
}
if(num == 3){
  e.reply(`	
  回向正道，保身护命…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/82/mxet0y513iz6l4xprxaqs8e21wutstb.mp3")
  e.reply(msg)
}
if(num == 4){
  e.reply(`刀枪无眼，红绳的力量也有极限，所以我才不喜欢人多的地方。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/3c/87n9uf7b5dffrhgm5mf47edz25u9wwc.mp3")
  e.reply(msg)
}
if(num == 5){
  e.reply(`按照凡人的做法，这种时候，是否应该…撑伞？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/6/65/tq3vx8n1ne9q2iwpffofrc6mo6wup3x.mp3")
  e.reply(msg)
}
if(num == 6){
  e.reply(`天气变好，我也很开心。只希望没有人来打扰…如果有，就让他们消失好了。`);
  let msg = await segment.record(" https://patchwiki.biligame.com/images/ys/0/0c/gv3m2g4bvpf03vpqmohsg2147hvmij7.mp3  ")
  e.reply(msg)
}
if(num == 7){
  e.reply(`把魔物冻在原地，雷劈下来就能瞬间解决它们，还不会让衣服沾上尘土。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c8/9c9uo1qxyb2o41r9x0tvu0f46ev2s39.mp3")
  e.reply(msg)
}
if(num == 8){
  e.reply(`嗯…师父最喜欢庆云顶上的罡风。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/97/0jlu15667u3l2rug9udh0ernmxydn9i.mp3")
  e.reply(msg)
}
if(num == 9){
  e.reply(`早安。晨露很甜，要分一点给你吗？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/3f/ngsusxl2nv49ewdjj42jnbx7j7npflb.mp3")
  e.reply(msg)
}
if(num == 10){
  e.reply(`	
  若是午后困乏，不妨试试打坐养神，很有效果。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/31/2ekf2tyhmf3il7pqu9uw4w8g15d30gh.mp3")
  e.reply(msg)
}
if(num == 11){
  e.reply(`	
  不知道你是喜欢人间的灯火，还是山林的月光？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/7b/9jmfamc54kryfhmllevfiugln1f6ci6.mp3")
  e.reply(msg)
}
if(num == 12){
  e.reply(`	
  放心休息吧，我睡眠很浅，有什么动静，我会替你查看的。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/9/94/h22usfwmqz5jlnqvq3ud2xm517u5v1b.mp3")
  e.reply(msg)
}
if(num == 13){
  e.reply(`	
  磨砺自身，修炼方术，都是本能使然，想要保全自己而已。我没有兼济苍生的胸怀，惩奸除恶只是顺手，不必感谢我。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/6/6a/mtafdvyvktukfdmi9bz0wwstqiodehh.mp3")
  e.reply(msg)
}
if(num == 14){
  e.reply(`	
  受我恩惠的人叫我仙人，被我惩罚的人喊我魔女，呵…不管是仙是魔，终究都是跟凡人不同的异类罢了…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8f/ivvcs7ovxeuznk05m2sw4nn96kf5r8p.mp3")
  e.reply(msg)
}
if(num == 15){
  e.reply(`	
  我很少下山，不懂得多少待人接物的道理。发生冲突的时候，我一律按自己的方式处理。但，如果你觉得不妥，都请告诉我，即使不理解，我也会听你的。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/f/f5/mtkardv5bll0c59z8jbsyr2me8mv6o0.mp3")
  e.reply(msg)
}
if(num == 16){
  e.reply(`师父赐我红绳用以压制心性，但这些日子你我同修，我才真正领悟到要诀，力量收放也更自在…你才是真正能锁住我的红绳。若你懂得这份心情，就请留在我身旁。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/5e/nszdq006cmihiz1kwrcq5p8dctrh7s3.mp3")
  e.reply(msg)
}
if(num == 17){
  e.reply(`原来这颗闪耀的石头叫做「神之眼」？呵…有缘既得，无缘便失。日后倘若缘分消散，它也会熄灭吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/79/4pljb39t60aeoz0havv53wm2z7z5et1.mp3")
  e.reply(msg)
}
if(num == 18){
  e.reply(`	
  邪祟易驱，心魔难除。若自身无法放下执念，仙法与术式都无从挽回。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/09/ffycmkuxrql3qeqfnuadlrm4gult14n.mp3")
  e.reply(msg)
}
if(num == 19){
  e.reply(`为什么说「初雪多浪漫」？那处山巅日日下雪，何日才算是初雪？我不理解，请你告诉我。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/f/f6/aylq07wkslir79nph900qe9c0xccycu.mp3")
  e.reply(msg)
}
if(num == 20){
  e.reply(`	
  人们所谓的财富，对我而言没什么用。但到了凝光小姐手里，却能解决连刀枪都无法处理的难题。她能掌握人间规则，洞察人心…师父说，这些连仙人都无法做到。我很佩服她。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a5/pjvk3yz3s4jwi3dapaqyme7orbeh7m1.mp3")
  e.reply(msg)
}
if(num == 21){
  e.reply(`与她相处不用讲究礼节，交谈时也不用揣测深意，让我轻松了不少。只是…她身边总是有人，听说船上还有诸多船员…我需要跟你一起，才能应对人多的场合。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8c/bogpz7ylughdg6olgdsxsxmjyq7vcr8.mp3")
  e.reply(msg)
}
if(num == 22){
  e.reply(`	
  云堇唱的…叫做「璃月戏」吧？我很喜欢这种形式。不必亲见其面，就能了解他人的事迹。如果将来她把你唱进戏里，那一定会是非常精彩的故事，我很期待。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/af/hyg1p3gsvmh1dsgd74j8szmkxtpuqyg.mp3")
  e.reply(msg)
}
if(num == 23){
  e.reply(`	
  我从师父那里听过许多有关她的事…她原先在我心中的形象，和实际差距还是挺大的。放心，我不会说出去。说起来，璃月港的工作竟这般繁忙…看来融入人间，也要付出一些代价。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/d/d2/dl4fggbbwmft7xtsr9r83v6rfd2hpd7.mp3")
  e.reply(msg)
}
if(num == 24){
  e.reply(`真没想到我在这世上…还有「亲缘」。他若是有什么修行上的困惑，我愿帮忙解答。不过，得请他上山来。他们一家太过热情，我不知道该如何回绝才符合礼数…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c0/fji0virmwtm7i0u5wsrtx6hn9nrais1.mp3")
  e.reply(msg)
}
if(num == 25){
  e.reply(`	
  我曾见到他凑在你耳旁不知说些什么。若他敢威胁你，我一定会将他…嗯？只是朋友间的玩闹话？当真如此吗…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/21/g76difwf453mdlim8gmygfa2iy6u8rc.mp3")
  e.reply(msg)
}
if(num == 26){
  e.reply(`那位先生自称是凡人，却与身为仙人的师父很熟络。师父曾说，如果碰见他在仙府前的石凳上饮酒，莫要打扰，让他静静独坐一会。我照做了。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/6/63/ilpt3mrumsmplsdhdiisg4v26bnp5tc.mp3")
  e.reply(msg)
}
if(num == 27){
  e.reply(`他的药草品质很好，为人也随和周到。相比起来，脖子上的小蛇倒是口无遮拦…放心，我没有动手。我还不至于和一条蛇置气。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/8/8f/8dingb3i6oljer8203k1s46rwklfkkz.mp3")
  e.reply(msg)
}
if(num == 28){
  e.reply(`她在附近山林游荡时，经常会唱奇怪的歌。久而久之，我把她的歌断断续续听了个遍。听习惯了也还是觉得奇怪，但，我并不讨厌。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/e/ec/dyrjg97nfw6gjnwwsl6m1w5iaevqbx6.mp3")
  e.reply(msg)
}
if(num == 29){
  e.reply(`	
  印象中他一直不苟言笑。近来见他，虽说沉默依旧，但…像是比从前轻松了不少。兴许是结识了哪位良人吧。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/a5/jz60yac1f4kudbxz1zfip26kn59uv7q.mp3")
  e.reply(msg)
}
if(num == 30){
  e.reply(`请不必在意人们对我的称呼，我不是仙人，也没什么神通。生于驱魔世家的旁系，长在远离璃月港的山间，只能算是个仙家弟子，仅此而已。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/cf/c14vncdw4l8zcqb4hxabq3udj36yir9.mp3")
  e.reply(msg)
}
if(num == 31){
  e.reply(`遇到恶意滋事的人，人们似乎都会选择上前说教，我不太明白。明明可以直接将这些拦路碍事、心存歹念的恶人斩草除根，为什么要这般麻烦？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/cd/glptrdyq3walv8lr1pitscggwgdlb6r.mp3")
  e.reply(msg)
}
if(num == 32){
  e.reply(`我师从多位仙家，静心修炼。随着修为提升，他们不再传授我新的术式，而是改教我怎样收敛杀性。别紧张…像平地凿出深坑，树木连根拔起之类的事，只在远离人烟的山林中发生过，从未波及过无辜性命。况且，现在我也已经能控制自我了。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/3/3f/pqijx0o35l774f9b66tzfn6k8lzakj6.mp3")
  e.reply(msg)
}
if(num == 33){
  e.reply(`父亲想用我的血肉换回母亲的生命。自从被他丢在山洞，我一度期盼过他会回来救我。一天、两天、三天…我拼尽全力与魔物厮杀，直到倒下都没能等到他。我不知道，究竟是我命格孤煞才遭人遗弃，还是命途坎坷使得我萌生出这股煞气？`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/0/03/ia754qgumbqj157ynpn73i2ynfd5jvv.mp3")
  e.reply(msg)
}
if(num == 34){
  e.reply(`有一回，我瞒着师父偷偷下山回到村里，却发现原本的村庄荒弃了，父亲早已去世。我突然明白，自己与血亲的缘分彻底断绝了。在乎的往事永无后话。自那日起，我一度舍弃人间种种…直到遇见你。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c4/lucg8bhnk7rkmqfv6vpgb0tehekupjb.mp3")
  e.reply(msg)
}
if(num == 35){
  e.reply(`打坐的要点在于「静」，需要摒弃杂念，用身体感受周遭气息，它能让我迅速回归自我。听师父说，修为达到足够境界后，打坐的姿势就不用再拘泥，仙人哪怕站立着都能打坐…我还远远不够。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/7/72/esfdwipg8dfgt4fu44jdnzj9br6jirm.mp3")
  e.reply(msg)
}
if(num == 36){
  e.reply(`	
  害怕失去重要之人、想要拯救重要之人…这种心情会将整颗心紧紧揪住，以前从未体会过。这是困扰，但…也是寄托。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/a/ae/laocmung77fjh1g8r3kpjt2g4w0fgo3.mp3")
  e.reply(msg)
}
if(num == 37){
  e.reply(`下山期间尝了不少菜，但都不太记得味道了。唯独从前在家吃的那碗面，永远忘不了…不该记住才对，不该记住才对…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/5/56/6ix56k87jkccbvitod186y63lgsqtky.mp3")
  e.reply(msg)
}
if(num == 38){
  e.reply(`药草嚼得久了，只剩苦味与涩味…修行多年，我早已习惯这些清规戒律了。仙人们？「仙人不会被人间俗物阻碍修为，所以可以敞开吃各式菜肴。」…这是师父的原话。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/1/10/d5my38p2ymtarpsyoddqnthwixezwgv.mp3")
  e.reply(msg)
}
if(num == 39){
  e.reply(`我听说生辰是个值得铭记的日子，人们会向寿星送上礼品以示庆贺。身外之物，我不太了解。银河夜色，是我在山林中见过最美丽的事物。我将湖面冻成明镜，让浮云和星斗映照在眼前，跟你共贺生辰…希望你喜欢。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/2/2f/f1qxxq5lug8h6iy2x31f4z4gysy2crv.mp3")
  e.reply(msg)
}
if(num == 40){
  e.reply(`我能操控的力量…愈发强大了。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c7/kgw11bs7nb5wcuz7enghxmj0a2o1p9r.mp3")
  e.reply(msg)
}
if(num == 41){
  e.reply(`师父若知道了，怕是会让我多系几根红绳吧…`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/4/43/pzehdwngt0x5o2dygvs5jgefok9x909.mp3")
  e.reply(msg)
}
if(num == 42){
  e.reply(`	
  这段日子，我闭关修炼的时长有所削减，修为却不知不觉地增进…嗯，也许只有跟你一起才能做到。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/c/c5/3typ2biw1j8zh4nmmurvet0zb50wgr5.mp3")
  e.reply(msg)
}
if(num == 43){
  e.reply(`「心无杂念，方可超然」，这是我从前所想。经历种种才明白，唯有心存牵挂，才能唤醒守护的欲望，让力量…变得有意义。`);
  let msg = await segment.record("https://patchwiki.biligame.com/images/ys/b/b1/nofpjfhf2qhrheg46moshm0i2hwqgge.mp3")
  e.reply(msg)
}
if(num == 44){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
if(num == 45){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
if(num == 46){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
if(num == 47){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
if(num == 48){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
if(num == 49){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
if(num == 50){
  e.reply(``);
  let msg = await segment.record("")
  e.reply(msg)
}
  return true
  }
}
}

